package day05;

public class MyInteger {
    public static void main(String[] args) {
       /* Integer  i=10;
        System.out.println(i);
        String s="123";
        int i1 = Integer.parseInt(s);
        int i2=i+i1;
        System.out.println(i2);*/
       String s="87 45 12 46 50";
       String[] strArr=s.split(" ");
       int[] numberArr=new int[strArr.length];
        for (int i = 0; i < strArr.length; i++) {
            int num=Integer.parseInt(strArr[i]);
            numberArr[i]=num;
        }
        for (int i = 0; i < numberArr.length; i++) {
            System.out.println(numberArr[i]);
        }
    }

}
